package com.tn.exam.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * InfoUser entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "info_user")
public class InfoUser extends BaseEntity implements java.io.Serializable {

	// Fields

	private Integer userId;
	private String userName;
	private String userPassword;
	private Date userCreateTime;
	private Integer userCreatorId;
	private Integer userRole;
	private Integer userStatus;

	// Constructors

	/** default constructor */
	public InfoUser() {
	}

	/** full constructor */
	public InfoUser(String userName, String userPassword, Date userCreateTime,
			Integer userCreatorId, Integer userRole, Integer userStatus) {
		this.userName = userName;
		this.userPassword = userPassword;
		this.userCreateTime = userCreateTime;
		this.userCreatorId = userCreatorId;
		this.userRole = userRole;
		this.userStatus = userStatus;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "user_id", unique = true, nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "user_name", nullable = false, length = 256)
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "user_password", nullable = false, length = 128)
	public String getUserPassword() {
		return this.userPassword;
	}

	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}

	@Column(name = "user_create_time", nullable = false, length = 19)
	public Date getUserCreateTime() {
		return this.userCreateTime;
	}

	public void setUserCreateTime(Date userCreateTime) {
		this.userCreateTime = userCreateTime;
	}

	@Column(name = "user_creator_id", nullable = false)
	public Integer getUserCreatorId() {
		return this.userCreatorId;
	}

	public void setUserCreatorId(Integer userCreatorId) {
		this.userCreatorId = userCreatorId;
	}

	@Column(name = "user_role", nullable = false)
	public Integer getUserRole() {
		return this.userRole;
	}

	public void setUserRole(Integer userRole) {
		this.userRole = userRole;
	}

	@Column(name = "user_status", nullable = false)
	public Integer getUserStatus() {
		return this.userStatus;
	}

	public void setUserStatus(Integer userStatus) {
		this.userStatus = userStatus;
	}

}